<template>
  <div class="starTypeWrapper" :class="{ active: active }">
    <!--图标插槽-->
    <slot></slot>
    <span>{{ props.starType.name }}</span>
  </div>
</template>
<script lang="ts" setup>
const props = defineProps({
  starType: {
    type: String,
    defualt: {}
  },
  active: {
    type: Boolean,
    defualt: false
  }
})
</script>
<style lang="less" scoped>
.starTypeWrapper {
  padding: 10px 3.5%;
  display: flex;
  align-items: center;
  margin-left: 2px;

  &:hover {
    background-color: #e4e2e2;
  }
  &.active {
    background-color: #e2e2e2;
  }
  span {
    font-size: 14px;
    color: #000;
    margin-left: 11px;
  }
}
</style>
